{% extends 'base.html' %}


{% block title %}权限管理{% endblock %}
{% block header %}权限管理{% endblock %}
{% block css %}{% endblock %}
{% block content %}
    <div class="row">
        <div class="col-lg-12">
            <table class="table">
                <thead>
                <tr>
                    <th>名称</th>
                    <th>描述</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                {% for permission in permission_list %}
                <tr>
                    <td class="col-lg-4">{{ permission.name }}</td>
                    <td class="col-lg-4">{{ permission.description }}</td>
                    <td class="col-lg-4">
                        <a href="edit_permission.html" class="btn btn-default">修改</a>
                        <a href="./permission.html" class="btn btn-default">删除</a>
                        <a class="btn btn-default" href="position_permission?permission_id={{ permission.id }}">关联职位</a>
                    </td>
                </tr>
                {% endfor %}

                </tbody>
            </table>
        </div>
        <!-- /.col-lg-12 -->
    </div>
{% endblock %}
{% block  script %} {% endblock %}

